package com.xujiaxin.programme_platform.utils;

import com.xujiaxin.programme_platform.system.OSInfo;

import java.io.IOException;

public class EXEUtil {

    public void exe() throws IOException {
        if (OSInfo.isWindows()){
            windowsEXE();
        }if (OSInfo.isLinux()){
            linuxEXE();
        }
        //各个系统调用程序方式...
    }

    private void windowsEXE() throws IOException {
        Process exe = Runtime.getRuntime().exec("java");
    }

    private void linuxEXE(){

    }
}
